import request from '@/utils/request'

// 查询服务说明列表
export function listDescription(query) {
  return request({
    url: '/mini/description/list',
    method: 'get',
    params: query
  })
}

// 查询服务说明详细
export function getDescription(descriptionId) {
  return request({
    url: '/mini/description/' + descriptionId,
    method: 'get'
  })
}

// 新增服务说明
export function addDescription(data) {
  return request({
    url: '/mini/description',
    method: 'post',
    data: data
  })
}

// 修改服务说明
export function updateDescription(data) {
  return request({
    url: '/mini/description',
    method: 'put',
    data: data
  })
}

// 删除服务说明
export function delDescription(descriptionId) {
  return request({
    url: '/mini/description/' + descriptionId,
    method: 'delete'
  })
}
